package com.afdor.rws.event.channel.client.consumer.handler;

import com.afdor.rws.annotation.extension.SPI;
import com.afdor.rws.event.Event;
import lombok.NonNull;

/**
 * 事件消费失败重试策略
 *
 * @author 悭梵
 * @date Created in 2018-08-21 10:17
 */
@SPI("default")
public interface EventRetryStrategy {
    /**
     * 事件重试
     *
     * @param event
     */
    void retry(@NonNull Event event);
}
